﻿using UnityEngine;

public class VRPlayer
{
    public PlayerData playerData;

    public GameObject entity;

    private Transform _head;
    private Transform _leftArm;
    private Transform _rightArm;
    private Transform _leftLeg;
    private Transform _rightLeg;

    public Transform Head
    {
        get
        {
            if (_head == null)
            {
                _head = entity.transform.Find("Head");
            }
            return _head;
        }
    }

    public Transform LeftArm
    {
        get
        {
            if (_leftArm == null)
            {
                _leftArm = entity.transform.Find("LeftArm");
            }
            return _leftArm;
        }
    }

    public Transform RightArm
    {
        get
        {
            if (_rightArm == null)
            {
                _rightArm = entity.transform.Find("RightArm");
            }
            return _rightArm;
        }
    }

    public Transform LeftLeg
    {
        get
        {
            if (_leftLeg == null)
            {
                _leftLeg = entity.transform.Find("LeftLeg");
            }
            return _leftLeg;
        }
    }

    public Transform RightLeg
    {
        get
        {
            if (_rightLeg == null)
            {
                _rightLeg = entity.transform.Find("RightLeg");
            }
            return _rightLeg;
        }
    }




}